/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2022-03-16 17:09:28
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2022-03-29 11:14:35
 */
import request from '@projectName/utils/request'

export function goodsIndex(data) {
  return request({
    url: '/diandi_integral/goods/dd-category/index',
    method: 'get',
    params: data
  })
}

export function goodsView(id) {
  return request({
    url: `/diandi_integral/goods/dd-category/view/${id}`,
    method: 'get'
  })
}

export function goodsCreate(data) {
  return request({
    url: '/diandi_integral/goods/dd-category/create',
    method: 'post',
    data: data
  })
}

export function goodsUpdate(id, data) {
  return request({
    url: `/diandi_integral/goods/dd-category/update/${id}`,
    method: 'put',
    data: data
  })
}

export function goodsdelete(id) {
  return request({
    url: `/diandi_integral/goods/dd-category/delete/${id}`,
    method: 'delete'
  })
}

export function categoryInit(data) {
  return request({
    url: '/diandi_integral/goods/dd-category/init',
    method: 'get',
    params: data
  })
}

